//Component Object
import moment from "../../public/utils/moment"
Component({
    properties: {
      tabList:{
        type:Array,
        value:[],
        observer: function(){}
      },
    },
    data: {
      tabIndex:0
    },
    methods: {
      itemChange(e){
        this.setData({
          tabIndex:e.currentTarget.dataset.index
        })
        console.log('1ee',e)
        this.triggerEvent("tabChange",{tabIndex:e.currentTarget.dataset.index, params: e.currentTarget.dataset.params});

      }
    },
    lifetimes:{
      created: function(){

      },
      attached: function(){
  
      },
      ready: function(){
      },
      moved: function(){
  
      },
      detached: function(){
  
      }
    }
    
});